<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="fnx" uri="http://java.sun.com/jsp/jstl/functionsx" %>
<%@ taglib prefix="s" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="f" uri="http://www.sctv.com/tags/form" %>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %>
<!DOCTYPE html>
<html>
<head>
    <jsp:include page="/WEB-INF/views/head.jsp"/>
</head>
<body class="skin-blue content-body">
<jsp:include page="/WEB-INF/views/commons/show_message.jsp"/>
<div class="content-header">
    <h1>分享页点击量管理
    </h1>
</div>
<div class="content">
    <div class="box box-primary">
        <div class="box-body table-responsive">
            <form action="edit.do" method="post" >
                <f:hidden name="id" value="${bean.id}"/>

                    <div class="col-sm-6">
                        <div class="form-group">
                            <label class="col-sm-3 control-label">分享页点击量启用: </label>
                            <div class="col-sm-2">
                                <select class="form-control input-sm" name="isOpen">
                                    <c:if test="${bean!=null}">
                                        <f:option value="0" selected="${bean.isOpen}" >否</f:option>
                                        <f:option value="1" selected="${bean.isOpen}" >是</f:option>
                                    </c:if>
                                    <c:if test="${bean==null}">
                                        <f:option value="0" selected="0" >否</f:option>
                                        <f:option value="1" selected="0" >是</f:option>
                                    </c:if>
                                </select>
                            </div>
                            <div class="col-sm-2">
                            <shiro:hasPermission name="ext:click_rate:update">
                                <button class="btn btn-primary" type="submit" onclick="edit();"><s:message
                                        code="save"/></button>
                            </shiro:hasPermission>
                            </div>
                        </div>
                </div>

            </form>
              <%--  <div class="row">
                    <div class="col-sm-6">
                        <div class="form-group">
                            <label class="col-sm-4 control-label"><em class="required">*</em>评论模式</label>
                            <div class="col-sm-8">
                                <select name="mode" class="form-control required">
                                    <option value="0">关闭评论</option>
                                    <option value="1">开放会员评论</option>
                                    <option selected="selected" value="2">开放游客评论</option>
                                </select>
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-6">
                        <div class="form-group">
                            <label class="col-sm-4 control-label"><em class="required">*</em>审核模式</label>
                            <div class="col-sm-8">
                                <select name="auditMode" class="form-control required">
                                    <option value="0">关闭审核</option>
                                    <option value="1">游客需审核</option>
                                    <option value="2">游客和会员需审核</option>
                                    <option selected="selected" value="3">游客、会员、管理员都需审核</option>
                                </select>
                            </div>
                        </div>
                    </div>
                </div>--%>
        </div>
    </div>
</div>
</body>
</html>